<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'UserApi\Controller\LoginUserApi' 		=> 	'UserApi\Controller\LoginUserApiController',	
            'UserApi\Controller\SubscribeApi' 		=> 	'UserApi\Controller\SubscribeApiController',		
            'UserApi\Controller\ForgetpasswordApi' 	=> 	'UserApi\Controller\ForgetpasswordApiController',	
            'UserApi\Controller\ChangepasswordApi' 	=> 	'UserApi\Controller\ChangepasswordApiController',
			'UserApi\Controller\RegistrationApi'	=>	'UserApi\Controller\RegistrationApiController',
			'UserApi\Controller\OrderApi'			=>	'UserApi\Controller\OrderApiController',
			'UserApi\Controller\ComplaintsApi'		=>	'UserApi\Controller\ComplaintsApiController',
			'UserApi\Controller\ReviewsRatingsApi'	=>	'UserApi\Controller\ReviewsRatingsApiController',
			'UserApi\Controller\DiscountsApi'		=>	'UserApi\Controller\DiscountsApiController',
        ),
    ),
    // The following section is new` and should be added to your file
    'router' => array(
        'routes' => array(		
            'register' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/register[/:id]',
                    'constraints' => array(
                        'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'UserApi\Controller\RegistrationApi',
                    ),
                ),
            ),
			'discounts' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/discounts[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\DiscountsApi',
					),
				),
			),
			'complaints' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/complaints[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\ComplaintsApi',
					),
				),
			),
			'reviews' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/reviews[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\ReviewsRatingsApi',
					),
				),
			),
			'login' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/login[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\LoginUserApi',
					),
				),
			),
			'subscriber' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/subscriber[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\SubscribeApi',
					),
				),
			),
			'forgetpassword' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/forgetpassword[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\ForgetpasswordApi',
					),
				),
			),
			'changepassword' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/changepassword[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\ChangepasswordApi',
					),
				),
			),
			'registration' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/registration[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\RegistrationApi',
					),
				),
			),
			'order' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/order[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\OrderApi',
					),
				),
			),
        ),
    ),
    'view_manager' => array(
        'strategies' => array(
            'ViewJsonStrategy',
        ),
    ),
	
);